package com.lc.admin.service.impl;

import com.lc.admin.mapper.FloorMapper;
import com.lc.admin.service.FloorService;
import com.lc.admin.vo.RoomVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class FloorServiceImpl implements FloorService {

    @Autowired
    private FloorMapper floorMapper;
    @Override
    public List<RoomVo> queryRoomList(String floorId) {
        // 1、查询绑定到房间的设备信息
        List<RoomVo> roomDevice = floorMapper.findRoomDevice(floorId);

        // 2、查询床位入住的老人、设备信息
//        floorMapper.findElderDevice();

        // 3、查询redis中最后一次推送的设备数据
        return roomDevice;
    }
}
